home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2003 March / DPPCPRO0303.ISO / Components / Microsoft ASP / _SETUP.1 / ASPWizard.jar / asp / wizard / SubDBQueryData$WhereOb.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-20  |  2.0 KB  |  60 lines

  1. package asp.wizard;
  2.  
  3. public class SubDBQueryData$WhereOb {
  4.    // $FF: synthetic field
  5.    private final SubDBQueryData this$0;
  6.    private String _strField;
  7.    private String _strFilter;
  8.    private String _strValue;
  9.    private String _strPrefix;
  10.    private String _strSuffix;
  11.  
  12.    SubDBQueryData$WhereOb(SubDBQueryData this$0, String strPrefix, String strField, String strFilter, String strValue, String strSuffix) {
  13.       this.this$0 = this$0;
  14.       this.this$0 = this$0;
  15.       this._strField = strField;
  16.       this._strFilter = strFilter;
  17.       this._strValue = strValue;
  18.       this._strPrefix = strPrefix;
  19.       this._strSuffix = strSuffix;
  20.    }
  21.  
  22.    public String getPrefix() {
  23.       return this._strPrefix;
  24.    }
  25.  
  26.    public String getField() {
  27.       return this._strField;
  28.    }
  29.  
  30.    public String getFilter() {
  31.       return this._strFilter;
  32.    }
  33.  
  34.    public String getValue() {
  35.       return this._strValue;
  36.    }
  37.  
  38.    public String getSuffix() {
  39.       return this._strSuffix;
  40.    }
  41.  
  42.    public String buildClause() {
  43.       String result = "";
  44.       if (this._strPrefix != null) {
  45.          result = result + this._strPrefix;
  46.       }
  47.  
  48.       result = result + this._strField + this._strFilter + this._strValue;
  49.       if (this._strSuffix != null) {
  50.          result = result + this._strSuffix;
  51.       }
  52.  
  53.       return result;
  54.    }
  55.  
  56.    public boolean validateClause() {
  57.       return true;
  58.    }
  59. }
  60.